package com.java.shop.product.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.java.shop.product.entity.AttrAttrgroupRelationEntity;
import com.java.shop.product.vo.AttrRelationVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 
 * 
 * @author cxq
 * @email 137512476@qq.com
 * @date 2021-03-26 11:19:51
 */
@Mapper
public interface AttrAttrgroupRelationDao extends BaseMapper<AttrAttrgroupRelationEntity> {
    /**
     * 根据attrid和attrgroupid批量删除
     * @param attrRelationVo
     */
    void deleteBatchRelation(@Param("attrRelationVo") List<AttrRelationVo> attrRelationVo);

    /**
     * 根据attrid和attrgroupid批量保存
     * @param attrRelationVo
     */
    void saveBatchRelation(@Param("attrRelationVo") List<AttrRelationVo> attrRelationVo);

}
